FROM ubuntu:18.04
COPY . /app
WORKDIR /app
#RUN rm /etc/apt/sources.list
#RUN cp sources.list /etc/apt/
#RUN apt-get update 
#RUN apt-get install -y wget
#RUN echo "update cmake"&&\
#    cd /home &&\
#    wget https://cmake.org/files/v3.12/cmake-3.12.2-Linux-x86_64.tar.gz&&\
#    tar zxvf cmake-3.12.2-Linux-x86_64.tar.gz &&\
#    mv cmake-3.12.2-Linux-x86_64 /opt/cmake-3.12.2 &&\
#    ln -sf /opt/cmake-3.12.2/bin/*  /usr/bin/ &&\
#    cd /home
RUN  chmod +777 enviroment.bash
RUN ./enviroment.bash
RUN cd /app
RUN cd build
RUN cmake ../src
RUN make -j4